<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
</html>

<script type="text/javascript">
	
	
	
	
	var time = 0;
	function delay(num, callback) {
		time =+ num * 1000;
		return new Promise((resolve, reject)=> {
			setTimeout(function() {
				resolve(callback);
			},time);
		})
	}
	
	async function  test () {
		for (var i=0;i<10;i++) {
				await delay(1);
				console.log(i);
			};
	}
	test();
</script>
